﻿<%@ page contentType="text/html;charset=UTF-8" import="java.util.*,org.yoao.crm.bean.Session,org.yoao.crm.bean.StaticBean"%>
<%
   	String base = request.getContextPath();
   	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
   	
   	Session userSession = (Session)session.getAttribute("userSession");
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<meta baseUrl="<%=base%>">
<title>YOAO-CRM</title>
<jsp:include page="/kmjsp/public/publicJs.jsp" flush="false"></jsp:include>
<SCRIPT Language="Javascript" SRC="<%=basePath%>js/tree.js"></SCRIPT>
<link rel="stylesheet" type="text/css" href="<%=base%>/css/style2.css">
<script language="javascript">  
  var isExpand=false;  
  function shframe(){
       var img = event.srcElement;
       var MainFrame= parent.document.all.MainFrame;
        if(isExpand){   
            MainFrame.cols  = "180,*";
            frmTitle1.style.display="none";
            frmTitle2.style.display="";         
	    frmTitle3.style.display="";  
            document.all.leftbody.style.background="";
            isExpand = false;
        }else{   
            isExpand = true;
            MainFrame.cols   =   "20,*";
            frmTitle1.style.display="";
            frmTitle2.style.display="none";  
	    	frmTitle3.style.display="none";  
            document.all.leftbody.style.background="#D6E2F3";
        }    
  }

  function fn_openLink(vUrl){
  	  parent.frames.main.location.href = "<%=basePath%>"+vUrl;
  }
</script> 
</head>

<body id="leftbody"  onload="public_onload(0)">
<table border="1" width="100%" id="table1" cellspacing="0" cellpadding="0" height="100%">
<tr id="frmTitle1" style="display:none">
<td align="right" valign="top" colspan="2" style="padding-top:3px;">
<img border="0" id="left_block" src="<%=base%>/images/pageleft_topbg_btnb.gif" onClick="javascript:shframe();" style="cursor:hand" title="显示菜单">
</td>
</tr>
<!--默认隐藏结束-->

<!--默认显示收缩菜单-->
<tr id="frmTitle2" class="tree_title_txt">
<td height="25" width="50%" id="frmTitle" class="tree_title_txt"align="left" valign="middle" align="left" nowrap>信息中心</td>
<td valign="middle" align="right" nowrap>
<img src="<%=base%>/images/res.gif" class="icon0" align="absmiddle" alt="刷新" onClick="location.href=location.href">
<img border="0" id="left_block" src="<%=base%>/images/pageleft_topbg_btn.gif" onClick="javascript:shframe();" style="cursor:hand" title="隐藏菜单">
</td>
</tr>
<tr id="frmTitle3">
	<td colspan="2" valign="top">
<div style="vertical-align:top;width:100%;overflow:auto;position: relative;padding:6px;" id="mydiv">
<table border="0"  width="100%" align="center"  cellspacing="0" cellpadding="0">
<tr>
<td valign="middle"><img src='<%=base%>/images/base.gif' align="absmiddle"/></td>
	 <td valign="middle" align=left width=100%>我的菜单
	 </td>
	</tr>
	<tr>
		<td colspan="2">
			<script language="javascript"> 
		    	  var xmlPath = "<%=basePath%>tree.crm?mode=1";
		    	  var xslPath = "<%=basePath%>xsl/tree.xsl";
		    	  var paramList = new Array("roleId=<%=userSession.getRoleId()%>");
		 	  	  document.write(loadTree(xmlPath, xslPath, paramList));
		 	</script>
		</td>
	</tr>
</table>
</div>
</td></tr>
</table>
</body>
</html>